import request from '@/utils/request'
//  获取商品属性列表
export function getContenttree(params) {
  return request({
    url: '/cloudApi/goods/goodsCategory/getGoodsCategoryList',
    method: 'get',
    params
  })
}
//  获取属性名名称
export function getclassname(params) {
  return request({
    url: '/cloudApi/goods/goodsProperties/getPropertiesList',
    method: 'get',
    params
  })
}

//  保存增加分类接口
export function saveclass(data) {
  return request({
    url: '/cloudApi/goods/goodsCategory/saveGoodsCategory',
    method: 'post',
    data
  })
}
//  编辑分类接口
export function editclass(data) {
  return request({
    url: '/cloudApi/goods/goodsCategory/updateGoodsCategory',
    method: 'post',
    data
  })
}
// 删除分类接口
export function removeclass(data) {
  return request({
    url: '/cloudApi/goods/goodsCategory/removeGoodsCategory',
    method: 'post',
    data
  })
}
// 获取属性名所有数据显示在标签中
export function getbyid(params) {
  return request({
    url: '/cloudApi/goods/goodsCategory/getById',
    method: 'get',
    params
  })
}
